package com.bootdo.wx.service;

import com.bootdo.common.utils.R;
import com.bootdo.wx.domain.MemberCartDO;

import java.util.List;
import java.util.Map;

/**
 * 购物车
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-05-22 15:32:07
 */
public interface MemberCartService {
	
	MemberCartDO get(String id);
	
	List<MemberCartDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(MemberCartDO memberCart);
	
	int update(MemberCartDO memberCart);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	R add(Map<String, Object> map);

	List<Map<String, Object>> getCartListBuyUser(Map<String, Object> map);

	int removeByUserIdAndCardId(Map<String, Object> map);

	R editCart(Map<String, Object> map);

	List<Map<String, Object>> getCartListBuyIds(Map<String, Object> map);


}
